﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Searching.SearchEngine
{
    public class QueryItem
    {
        List<string> keywords;

        public QueryItem(string[] words)
        {
            keywords = new List<string>();
            for (int i = 0; i < 5 && i < words.Length; ++i )
            {
                if (!String.IsNullOrEmpty(words[i]))
                {
                    keywords.Add(words[i]);
                }
            }
        }

        public string[] GetKeywords()
        {
            return keywords.ToArray();
        }
    }
}
